/** 
 * All Rights Reserved , Copyright (C) 2023 , 青岛鼎信通讯股份有限公司
 * 
 * QemProblemAlertActionAuto
 * 问题告警表
 * 
 * 修改纪录
 * 2023-01-06 版本：1.0 xinfushuo 创建。
 * @version 版本：1.0
 * @author 作者：xinfushuo
 * 创建日期：2023-01-06
 */

package com.topscomm.qem.controller.auto;

import java.util.HashMap;
import java.util.List;
import java.util.Map;

import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

import com.topscomm.qem.QemController;
import com.topscomm.qem.pojo.QemProblemAlertEntity;
import com.topscomm.qem.service.IQemProblemAlertService;
import com.topscomm.pub.vo.ResponseResult;

public class QemProblemAlertControllerAuto extends QemController<QemProblemAlertEntity, IQemProblemAlertService> {
	/**
	 * 
	 * @description: 
	 * @param paraMap
	 * @return 
	 * @author: xinfushuo
	 * @date: 2023-01-06
	 * @modify:
	 */
	@Override
	@GetMapping(value = "/dataCodeList")
	public ResponseResult<Object> dataCodeList(@RequestParam(required = false) Map<String, Object> paraMap) {
		Map<String, Object> codeMap = new HashMap<String, Object>();
		
		List<Map<String, Object>> problemgradingList = datacodeCache.getCodeListMap("QemProblemgrading", "", "sortcode");
		codeMap.put("problemgradingList", problemgradingList);
		List<Map<String, Object>> sourcetypeList = datacodeCache.getCodeListMap("QemProblemSourcetype", "", "sortcode");
		codeMap.put("sourcetypeList", sourcetypeList);
		List<Map<String, Object>> happennodeList = datacodeCache.getCodeListMap("QemProblemHappennode", "", "sortcode");
		codeMap.put("happennodeList", happennodeList);
		List<Map<String, Object>> ipdnodeList = datacodeCache.getCodeListMap("QemProblemIpdnode", "", "sortcode");
		codeMap.put("ipdnodeList", ipdnodeList);
		List<Map<String, Object>> requirementsList = datacodeCache.getCodeListMap("QemProblemRequirements", "", "sortcode");
		codeMap.put("requirementsList", requirementsList);
		List<Map<String, Object>> pathwayList = datacodeCache.getCodeListMap("QemProblemPathway", "", "sortcode");
		codeMap.put("pathwayList", pathwayList);
		List<Map<String, Object>> emergenttreatmentList = datacodeCache.getCodeListMap("QemProblemEmergenttreatment", "", "sortcode");
		codeMap.put("emergenttreatmentList", emergenttreatmentList);
		List<Map<String, Object>> repeatList = datacodeCache.getCodeListMap("CboYesNo", "", "sortcode");
		codeMap.put("repeatList", repeatList);
		List<Map<String, Object>> flowidList = flowDatacodeCache.getApprovalFlowListMap("ApprovalFlow_QemProblemAlert", this.getUserBean(), "sortcode");
		codeMap.put("flowidList", flowidList);
		List<Map<String, Object>> stateList = datacodeCache.getCodeListMap("TapApprovalBillState", "", "sortcode");
		codeMap.put("stateList", stateList);
		List<Map<String, Object>> enabledList = datacodeCache.getCodeListMap("CboYesNo", "", "sortcode");
		codeMap.put("enabledList", enabledList);
		super.dataCodeList(paraMap);
		return ResponseResult.ok(codeMap);
	}
}

